#ifndef LOGIC_H
#define LOGIC_H

#include <vector>
#include <string>

class Logic
{
public:
	// ctor
	Logic( );

	//dtor
	~Logic( );

	// Initialise the grid
	void initGrid( void );

	// polls the current players move
	void getPlayerMove(bool playerIndex);

	// displays the grid on the screen(currently in the console window, this will change to use OpenGL)
	void displayGrid( void ) const;

	// Use to determine if its a game over or the likes
	std::string checkGrid( void );
private:
	// To determine which player's turn it is(basic just now, will improve as needed)
	bool player;
	// To determine size of grid
	const int gridSizeX, gridSizeY;
	// The tic tac toe grid(3x3)
	std::vector<std::vector<std::string>>grid;
};

#endif